using System;
using System.Globalization;
using UnityEngine;

namespace MaterialUI
{
	public static class MaterialColor
	{
		private const float m_LowestSaturation = 0.0207468f;

		private static readonly Color[][] m_ColorSets = new Color[19][]
		{
			new Color[14]
			{
				new Color(1f, 0.9215686f, 0.9333333f),
				new Color(1f, 41f / 51f, 0.8235294f),
				new Color(239f / 255f, 154f / 255f, 154f / 255f),
				new Color(229f / 255f, 23f / 51f, 23f / 51f),
				new Color(239f / 255f, 83f / 255f, 16f / 51f),
				new Color(0.9568627f, 67f / 255f, 0.2117647f),
				new Color(229f / 255f, 0.2235294f, 0.2078431f),
				new Color(211f / 255f, 0.1843137f, 0.1843137f),
				new Color(66f / 85f, 0.1568628f, 0.1568628f),
				new Color(61f / 85f, 0.1098039f, 0.1098039f),
				new Color(1f, 46f / 85f, 128f / 255f),
				new Color(1f, 0.3215686f, 0.3215686f),
				new Color(1f, 0.0901961f, 0.2666667f),
				new Color(71f / 85f, 0f, 0f)
			},
			new Color[14]
			{
				new Color(84f / 85f, 0.8941177f, 236f / 255f),
				new Color(248f / 255f, 0.7333333f, 208f / 255f),
				new Color(0.9568627f, 0.5607843f, 0.6941177f),
				new Color(0.9411765f, 0.3843137f, 0.572549f),
				new Color(236f / 255f, 64f / 255f, 0.4784314f),
				new Color(233f / 255f, 0.1176471f, 33f / 85f),
				new Color(0.8470588f, 0.1058824f, 32f / 85f),
				new Color(194f / 255f, 0.0941177f, 0.3568628f),
				new Color(173f / 255f, 0.0784314f, 0.3411765f),
				new Color(0.5333334f, 0.054902f, 0.3098039f),
				new Color(1f, 128f / 255f, 0.6705883f),
				new Color(1f, 64f / 255f, 43f / 85f),
				new Color(49f / 51f, 0f, 0.3411765f),
				new Color(0.772549f, 0.0666667f, 0.3843137f)
			},
			new Color[14]
			{
				new Color(81f / 85f, 229f / 255f, 49f / 51f),
				new Color(0.8823529f, 0.7450981f, 0.9058824f),
				new Color(0.8078431f, 49f / 85f, 0.8470588f),
				new Color(62f / 85f, 0.4078431f, 0.7843137f),
				new Color(0.6705883f, 71f / 255f, 188f / 255f),
				new Color(52f / 85f, 0.1529412f, 176f / 255f),
				new Color(142f / 255f, 0.1411765f, 2f / 3f),
				new Color(0.4823529f, 0.1215686f, 0.6352941f),
				new Color(0.4156863f, 0.1058824f, 154f / 255f),
				new Color(74f / 255f, 0.0784314f, 0.5490196f),
				new Color(0.9176471f, 128f / 255f, 84f / 85f),
				new Color(224f / 255f, 64f / 255f, 251f / 255f),
				new Color(71f / 85f, 0f, 83f / 85f),
				new Color(0.772549f, 0.0666667f, 0.3843137f)
			},
			new Color[14]
			{
				new Color(0.9294118f, 0.9058824f, 82f / 85f),
				new Color(0.8196079f, 0.7686275f, 233f / 255f),
				new Color(179f / 255f, 157f / 255f, 0.8588235f),
				new Color(0.5843138f, 0.4588235f, 41f / 51f),
				new Color(0.4941176f, 0.3411765f, 194f / 255f),
				new Color(0.4039216f, 0.227451f, 61f / 85f),
				new Color(0.3686275f, 0.2078431f, 0.6941177f),
				new Color(0.3176471f, 0.1764706f, 0.6588235f),
				new Color(0.2705882f, 0.1529412f, 32f / 51f),
				new Color(0.1921569f, 0.1058824f, 0.572549f),
				new Color(179f / 255f, 0.5333334f, 1f),
				new Color(124f / 255f, 77f / 255f, 1f),
				new Color(0.3960784f, 0.1215686f, 1f),
				new Color(0.3843137f, 0f, 0.9176471f)
			},
			new Color[14]
			{
				new Color(232f / 255f, 0.9176471f, 82f / 85f),
				new Color(0.772549f, 202f / 255f, 233f / 255f),
				new Color(0.6235294f, 0.6588235f, 0.854902f),
				new Color(121f / 255f, 134f / 255f, 0.7960784f),
				new Color(0.3607843f, 0.4196078f, 64f / 85f),
				new Color(0.2470588f, 0.3176471f, 0.7098039f),
				new Color(0.2235294f, 0.2862745f, 0.6705883f),
				new Color(16f / 85f, 0.2470588f, 0.6235294f),
				new Color(0.1568628f, 0.2078431f, 49f / 85f),
				new Color(0.1019608f, 0.1372549f, 0.4941176f),
				new Color(0.5490196f, 0.6196079f, 1f),
				new Color(83f / 255f, 0.427451f, 0.9960784f),
				new Color(0.2392157f, 0.3529412f, 0.9960784f),
				new Color(16f / 85f, 0.3098039f, 0.9960784f)
			},
			new Color[14]
			{
				new Color(227f / 255f, 242f / 255f, 0.9921569f),
				new Color(0.7333333f, 0.8705882f, 251f / 255f),
				new Color(48f / 85f, 202f / 255f, 83f / 85f),
				new Color(0.3921569f, 0.7098039f, 82f / 85f),
				new Color(0.2588235f, 0.6470588f, 49f / 51f),
				new Color(0.1294118f, 0.5882353f, 81f / 85f),
				new Color(0.1176471f, 0.5333334f, 229f / 255f),
				new Color(0.0980392f, 118f / 255f, 0.8235294f),
				new Color(0.0823529f, 0.3960784f, 64f / 85f),
				new Color(0.0509804f, 71f / 255f, 161f / 255f),
				new Color(0.509804f, 0.6941177f, 1f),
				new Color(0.2666667f, 46f / 85f, 1f),
				new Color(0.1607843f, 121f / 255f, 1f),
				new Color(0.1607843f, 0.3843137f, 1f)
			},
			new Color[14]
			{
				new Color(0.8823529f, 49f / 51f, 0.9960784f),
				new Color(179f / 255f, 229f / 255f, 84f / 85f),
				new Color(43f / 85f, 0.8313726f, 0.9803922f),
				new Color(0.3098039f, 0.7647059f, 0.9686275f),
				new Color(0.1607843f, 182f / 255f, 82f / 85f),
				new Color(0.0117647f, 169f / 255f, 0.9568627f),
				new Color(0.0117647f, 0.6078432f, 229f / 255f),
				new Color(0.0078431f, 0.5333334f, 0.8196079f),
				new Color(0.0078431f, 0.4666667f, 63f / 85f),
				new Color(0.0039216f, 0.3411765f, 0.6078432f),
				new Color(128f / 255f, 0.8470588f, 1f),
				new Color(64f / 255f, 0.7686275f, 1f),
				new Color(0f, 176f / 255f, 1f),
				new Color(0f, 29f / 51f, 0.9176471f)
			},
			new Color[14]
			{
				new Color(224f / 255f, 0.9686275f, 0.9803922f),
				new Color(0.6980392f, 0.9215686f, 242f / 255f),
				new Color(128f / 255f, 0.8705882f, 0.9176471f),
				new Color(77f / 255f, 208f / 255f, 0.8823529f),
				new Color(367f / (906f * (float)Math.E), 66f / 85f, 0.854902f),
				new Color(0f, 188f / 255f, 0.8313726f),
				new Color(0f, 172f / 255f, 0.7568628f),
				new Color(0f, 151f / 255f, 167f / 255f),
				new Color(0f, 131f / 255f, 0.5607843f),
				new Color(0f, 32f / 85f, 0.3921569f),
				new Color(44f / 85f, 1f, 1f),
				new Color(0.0941177f, 1f, 1f),
				new Color(0f, 229f / 255f, 1f),
				new Color(0f, 0.7215686f, 0.8313726f)
			},
			new Color[14]
			{
				new Color(224f / 255f, 242f / 255f, (float)Math.E * 105f / 302f),
				new Color(0.6980392f, 223f / 255f, 0.8588235f),
				new Color(128f / 255f, 0.7960784f, 0.7686275f),
				new Color(77f / 255f, 182f / 255f, 172f / 255f),
				new Color(367f / (906f * (float)Math.E), 166f / 255f, 154f / 255f),
				new Color(0f, 0.5882353f, 0.5333334f),
				new Color(0f, 137f / 255f, 0.4823529f),
				new Color(0f, 121f / 255f, 0.4196078f),
				new Color(0f, 0.4117647f, 0.3607843f),
				new Color(0f, 77f / 255f, 64f / 255f),
				new Color(167f / 255f, 1f, 0.9215686f),
				new Color(0.3921569f, 1f, 0.854902f),
				new Color(0.1137255f, 233f / 255f, 182f / 255f),
				new Color(0f, 191f / 255f, 0.6470588f)
			},
			new Color[14]
			{
				new Color(232f / 255f, 49f / 51f, 233f / 255f),
				new Color(0.7843137f, 46f / 51f, 67f / 85f),
				new Color(0.6470588f, 214f / 255f, 167f / 255f),
				new Color(43f / 85f, 0.7803922f, 44f / 85f),
				new Color(0.4f, 0.7333333f, 0.4156863f),
				new Color(367f / (453f * (float)Math.E), 35f / 51f, 16f / 51f),
				new Color(67f / 255f, 32f / 51f, 71f / 255f),
				new Color(0.2196078f, 142f / 255f, 0.2352941f),
				new Color(0.1803922f, 0.4901961f, 0.1960784f),
				new Color(0.1058824f, 0.3686275f, 32f / 255f),
				new Color(37f / 51f, 82f / 85f, 202f / 255f),
				new Color(0.4117647f, 0.9411765f, 0.682353f),
				new Color(0f, 46f / 51f, 118f / 255f),
				new Color(0f, 0.7843137f, 83f / 255f)
			},
			new Color[14]
			{
				new Color((float)Math.E * 105f / 302f, 248f / 255f, 233f / 255f),
				new Color(44f / 51f, 0.9294118f, 0.7843137f),
				new Color(0.772549f, 0.8823529f, 0.6470588f),
				new Color(0.682353f, 71f / 85f, 43f / 85f),
				new Color(52f / 85f, 0.8f, 0.3960784f),
				new Color(0.5450981f, 0.7647059f, 74f / 255f),
				new Color(124f / 255f, 179f / 255f, 0.2588235f),
				new Color(0.4078431f, 0.6235294f, 0.2196078f),
				new Color(0.3333333f, 0.5450981f, 0.1843137f),
				new Color(0.2f, 0.4117647f, 0.1176471f),
				new Color(0.8f, 1f, 48f / 85f),
				new Color(0.6980392f, 1f, 0.3490196f),
				new Color(118f / 255f, 1f, 0.0117647f),
				new Color(0.3921569f, 13f / 15f, 0.0901961f)
			},
			new Color[14]
			{
				new Color(83f / 85f, 251f / 255f, 0.9058824f),
				new Color(0.9411765f, 0.9568627f, 0.7647059f),
				new Color(46f / 51f, 0.9333333f, 52f / 85f),
				new Color(44f / 51f, 0.9058824f, 0.4588235f),
				new Color(0.8313726f, 0.8823529f, 0.3411765f),
				new Color(41f / 51f, 44f / 51f, 0.2235294f),
				new Color(64f / 85f, 202f / 255f, 0.2f),
				new Color(35f / 51f, 0.7058824f, 0.1686275f),
				new Color(0.6196079f, 157f / 255f, 0.1411765f),
				new Color(0.509804f, 0.4666667f, 0.0901961f),
				new Color(0.9568627f, 1f, 43f / 85f),
				new Color(0.9333333f, 1f, 0.254902f),
				new Color(66f / 85f, 1f, 0f),
				new Color(0.682353f, 0.9176471f, 0f)
			},
			new Color[14]
			{
				new Color(1f, 0.9921569f, 0.9058824f),
				new Color(1f, 83f / 85f, 0.7686275f),
				new Color(1f, 49f / 51f, 157f / 255f),
				new Color(1f, (float)Math.E * 105f / 302f, 118f / 255f),
				new Color(1f, 0.9333333f, 0.345098f),
				new Color(1f, 0.9215686f, 0.2313726f),
				new Color(0.9921569f, 0.8470588f, 0.2078431f),
				new Color(251f / 255f, 64f / 85f, 0.1764706f),
				new Color(83f / 85f, 0.6588235f, 0.145098f),
				new Color(49f / 51f, 0.4980392f, 0.0901961f),
				new Color(1f, 1f, 47f / 85f),
				new Color(1f, 1f, 0f),
				new Color(1f, 0.9176471f, 0f),
				new Color(1f, 214f / 255f, 0f)
			},
			new Color[14]
			{
				new Color(1f, 248f / 255f, 0.8823529f),
				new Color(1f, 236f / 255f, 179f / 255f),
				new Color(1f, 224f / 255f, 0.509804f),
				new Color(1f, 71f / 85f, 0.3098039f),
				new Color(1f, 202f / 255f, 0.1568628f),
				new Color(1f, 0.7568628f, 0.027451f),
				new Color(1f, 179f / 255f, 0f),
				new Color(1f, 32f / 51f, 0f),
				new Color(1f, 0.5607843f, 0f),
				new Color(1f, 0.4352941f, 0f),
				new Color(1f, 229f / 255f, 0.4980392f),
				new Color(1f, 0.8431373f, 64f / 255f),
				new Color(1f, 0.7686275f, 0f),
				new Color(1f, 0.6705883f, 0f)
			},
			new Color[14]
			{
				new Color(1f, 81f / 85f, 224f / 255f),
				new Color(1f, 224f / 255f, 0.6980392f),
				new Color(1f, 0.8f, 128f / 255f),
				new Color(1f, 61f / 85f, 77f / 255f),
				new Color(1f, 167f / 255f, 367f / (906f * (float)Math.E)),
				new Color(1f, 0.5960785f, 0f),
				new Color(251f / 255f, 0.5490196f, 0f),
				new Color(49f / 51f, 124f / 255f, 0f),
				new Color(239f / 255f, 0.4235294f, 0f),
				new Color(46f / 51f, 0.3176471f, 0f),
				new Color(1f, 0.8196079f, 128f / 255f),
				new Color(1f, 0.6705883f, 64f / 255f),
				new Color(1f, 29f / 51f, 0f),
				new Color(1f, 0.427451f, 0f)
			},
			new Color[14]
			{
				new Color(251f / 255f, 233f / 255f, 0.9058824f),
				new Color(1f, 0.8f, 188f / 255f),
				new Color(1f, 0.6705883f, 29f / 51f),
				new Color(1f, 46f / 85f, 0.3960784f),
				new Color(1f, 112f / 255f, 67f / 255f),
				new Color(1f, 0.3411765f, 0.1333333f),
				new Color(0.9568627f, 0.3176471f, 0.1176471f),
				new Color(46f / 51f, 74f / 255f, 0.0980392f),
				new Color(0.8470588f, 67f / 255f, 0.0823529f),
				new Color(191f / 255f, 0.2117647f, 0.0470588f),
				new Color(1f, 0.6196079f, 128f / 255f),
				new Color(1f, 0.4313726f, 64f / 255f),
				new Color(1f, 0.2392157f, 0f),
				new Color(13f / 15f, 0.172549f, 0f)
			},
			new Color[10]
			{
				new Color(239f / 255f, 0.9215686f, 233f / 255f),
				new Color(0.8431373f, 0.8f, 0.7843137f),
				new Color(188f / 255f, 2f / 3f, 164f / 255f),
				new Color(161f / 255f, 0.5333334f, 0.4980392f),
				new Color(47f / 85f, 0.4313726f, 33f / 85f),
				new Color(121f / 255f, 0.3333333f, 0.282353f),
				new Color(0.427451f, 367f / (453f * (float)Math.E), 0.254902f),
				new Color(31f / 85f, 64f / 255f, 0.2156863f),
				new Color(0.3058824f, 0.2039216f, 0.1803922f),
				new Color(0.2431373f, 0.1529412f, 0.1372549f)
			},
			new Color[10]
			{
				new Color(236f / 255f, 239f / 255f, (float)Math.E * 105f / 302f),
				new Color(69f / 85f, 0.8470588f, 44f / 51f),
				new Color(176f / 255f, 0.7450981f, 0.772549f),
				new Color(48f / 85f, 164f / 255f, 0.682353f),
				new Color(0.4705882f, 48f / 85f, 52f / 85f),
				new Color(32f / 85f, 0.4901961f, 0.5450981f),
				new Color(0.3294118f, 0.4313726f, 0.4784314f),
				new Color(0.2705882f, 0.3529412f, 0.3921569f),
				new Color(0.2156863f, 71f / 255f, 0.3098039f),
				new Color(367f / (906f * (float)Math.E), 0.1960784f, 0.2196078f)
			},
			new Color[10]
			{
				new Color(0.9803922f, 0.9803922f, 0.9803922f),
				new Color(49f / 51f, 49f / 51f, 49f / 51f),
				new Color(0.9333333f, 0.9333333f, 0.9333333f),
				new Color(224f / 255f, 224f / 255f, 224f / 255f),
				new Color(63f / 85f, 63f / 85f, 63f / 85f),
				new Color(0.6196079f, 0.6196079f, 0.6196079f),
				new Color(0.4588235f, 0.4588235f, 0.4588235f),
				new Color(0.3803922f, 0.3803922f, 0.3803922f),
				new Color(0.2588235f, 0.2588235f, 0.2588235f),
				new Color(0.1294118f, 0.1294118f, 0.1294118f)
			}
		};

		public static Color[] colorSets => m_ColorSets[0];

		public static Color[] redSet => m_ColorSets[0];

		public static Color red50 => m_ColorSets[0][0];

		public static Color red100 => m_ColorSets[0][1];

		public static Color red200 => m_ColorSets[0][2];

		public static Color red300 => m_ColorSets[0][3];

		public static Color red400 => m_ColorSets[0][4];

		public static Color red500 => m_ColorSets[0][5];

		public static Color red600 => m_ColorSets[0][6];

		public static Color red700 => m_ColorSets[0][7];

		public static Color red800 => m_ColorSets[0][8];

		public static Color red900 => m_ColorSets[0][9];

		public static Color redA100 => m_ColorSets[0][10];

		public static Color redA200 => m_ColorSets[0][11];

		public static Color redA400 => m_ColorSets[0][12];

		public static Color redA700 => m_ColorSets[0][13];

		public static Color[] pinkSet => m_ColorSets[1];

		public static Color pink50 => m_ColorSets[1][0];

		public static Color pink100 => m_ColorSets[1][1];

		public static Color pink200 => m_ColorSets[1][2];

		public static Color pink300 => m_ColorSets[1][3];

		public static Color pink400 => m_ColorSets[1][4];

		public static Color pink500 => m_ColorSets[1][5];

		public static Color pink600 => m_ColorSets[1][6];

		public static Color pink700 => m_ColorSets[1][7];

		public static Color pink800 => m_ColorSets[1][8];

		public static Color pink900 => m_ColorSets[1][9];

		public static Color pinkA100 => m_ColorSets[1][10];

		public static Color pinkA200 => m_ColorSets[1][11];

		public static Color pinkA400 => m_ColorSets[1][12];

		public static Color pinkA700 => m_ColorSets[1][13];

		public static Color[] purpleSet => m_ColorSets[2];

		public static Color purple50 => m_ColorSets[2][0];

		public static Color purple100 => m_ColorSets[2][1];

		public static Color purple200 => m_ColorSets[2][2];

		public static Color purple300 => m_ColorSets[2][3];

		public static Color purple400 => m_ColorSets[2][4];

		public static Color purple500 => m_ColorSets[2][5];

		public static Color purple600 => m_ColorSets[2][6];

		public static Color purple700 => m_ColorSets[2][7];

		public static Color purple800 => m_ColorSets[2][8];

		public static Color purple900 => m_ColorSets[2][9];

		public static Color purpleA100 => m_ColorSets[2][10];

		public static Color purpleA200 => m_ColorSets[2][11];

		public static Color purpleA400 => m_ColorSets[2][12];

		public static Color purpleA700 => m_ColorSets[2][13];

		public static Color[] deepPurpleSet => m_ColorSets[3];

		public static Color deepPurple50 => m_ColorSets[3][0];

		public static Color deepPurple100 => m_ColorSets[3][1];

		public static Color deepPurple200 => m_ColorSets[3][2];

		public static Color deepPurple300 => m_ColorSets[3][3];

		public static Color deepPurple400 => m_ColorSets[3][4];

		public static Color deepPurple500 => m_ColorSets[3][5];

		public static Color deepPurple600 => m_ColorSets[3][6];

		public static Color deepPurple700 => m_ColorSets[3][7];

		public static Color deepPurple800 => m_ColorSets[3][8];

		public static Color deepPurple900 => m_ColorSets[3][9];

		public static Color deepPurpleA100 => m_ColorSets[3][10];

		public static Color deepPurpleA200 => m_ColorSets[3][11];

		public static Color deepPurpleA400 => m_ColorSets[3][12];

		public static Color deepPurpleA700 => m_ColorSets[3][13];

		public static Color[] indigoSet => m_ColorSets[4];

		public static Color indigo50 => m_ColorSets[4][0];

		public static Color indigo100 => m_ColorSets[4][1];

		public static Color indigo200 => m_ColorSets[4][2];

		public static Color indigo300 => m_ColorSets[4][3];

		public static Color indigo400 => m_ColorSets[4][4];

		public static Color indigo500 => m_ColorSets[4][5];

		public static Color indigo600 => m_ColorSets[4][6];

		public static Color indigo700 => m_ColorSets[4][7];

		public static Color indigo800 => m_ColorSets[4][8];

		public static Color indigo900 => m_ColorSets[4][9];

		public static Color indigoA100 => m_ColorSets[4][10];

		public static Color indigoA200 => m_ColorSets[4][11];

		public static Color indigoA400 => m_ColorSets[4][12];

		public static Color indigoA700 => m_ColorSets[4][13];

		public static Color[] blueSet => m_ColorSets[5];

		public static Color blue50 => m_ColorSets[5][0];

		public static Color blue100 => m_ColorSets[5][1];

		public static Color blue200 => m_ColorSets[5][2];

		public static Color blue300 => m_ColorSets[5][3];

		public static Color blue400 => m_ColorSets[5][4];

		public static Color blue500 => m_ColorSets[5][5];

		public static Color blue600 => m_ColorSets[5][6];

		public static Color blue700 => m_ColorSets[5][7];

		public static Color blue800 => m_ColorSets[5][8];

		public static Color blue900 => m_ColorSets[5][9];

		public static Color blueA100 => m_ColorSets[5][10];

		public static Color blueA200 => m_ColorSets[5][11];

		public static Color blueA400 => m_ColorSets[5][12];

		public static Color blueA700 => m_ColorSets[5][13];

		public static Color[] lightBlueSet => m_ColorSets[6];

		public static Color lightBlue50 => m_ColorSets[6][0];

		public static Color lightBlue100 => m_ColorSets[6][1];

		public static Color lightBlue200 => m_ColorSets[6][2];

		public static Color lightBlue300 => m_ColorSets[6][3];

		public static Color lightBlue400 => m_ColorSets[6][4];

		public static Color lightBlue500 => m_ColorSets[6][5];

		public static Color lightBlue600 => m_ColorSets[6][6];

		public static Color lightBlue700 => m_ColorSets[6][7];

		public static Color lightBlue800 => m_ColorSets[6][8];

		public static Color lightBlue900 => m_ColorSets[6][9];

		public static Color lightBlueA100 => m_ColorSets[6][10];

		public static Color lightBlueA200 => m_ColorSets[6][11];

		public static Color lightBlueA400 => m_ColorSets[6][12];

		public static Color lightBlueA700 => m_ColorSets[6][13];

		public static Color[] cyanSet => m_ColorSets[7];

		public static Color cyan50 => m_ColorSets[7][0];

		public static Color cyan100 => m_ColorSets[7][1];

		public static Color cyan200 => m_ColorSets[7][2];

		public static Color cyan300 => m_ColorSets[7][3];

		public static Color cyan400 => m_ColorSets[7][4];

		public static Color cyan500 => m_ColorSets[7][5];

		public static Color cyan600 => m_ColorSets[7][6];

		public static Color cyan700 => m_ColorSets[7][7];

		public static Color cyan800 => m_ColorSets[7][8];

		public static Color cyan900 => m_ColorSets[7][9];

		public static Color cyanA100 => m_ColorSets[7][10];

		public static Color cyanA200 => m_ColorSets[7][11];

		public static Color cyanA400 => m_ColorSets[7][12];

		public static Color cyanA700 => m_ColorSets[7][13];

		public static Color[] tealSet => m_ColorSets[8];

		public static Color teal50 => m_ColorSets[8][0];

		public static Color teal100 => m_ColorSets[8][1];

		public static Color teal200 => m_ColorSets[8][2];

		public static Color teal300 => m_ColorSets[8][3];

		public static Color teal400 => m_ColorSets[8][4];

		public static Color teal500 => m_ColorSets[8][5];

		public static Color teal600 => m_ColorSets[8][6];

		public static Color teal700 => m_ColorSets[8][7];

		public static Color teal800 => m_ColorSets[8][8];

		public static Color teal900 => m_ColorSets[8][9];

		public static Color tealA100 => m_ColorSets[8][10];

		public static Color tealA200 => m_ColorSets[8][11];

		public static Color tealA400 => m_ColorSets[8][12];

		public static Color tealA700 => m_ColorSets[8][13];

		public static Color[] greenSet => m_ColorSets[9];

		public static Color green50 => m_ColorSets[9][0];

		public static Color green100 => m_ColorSets[9][1];

		public static Color green200 => m_ColorSets[9][2];

		public static Color green300 => m_ColorSets[9][3];

		public static Color green400 => m_ColorSets[9][4];

		public static Color green500 => m_ColorSets[9][5];

		public static Color green600 => m_ColorSets[9][6];

		public static Color green700 => m_ColorSets[9][7];

		public static Color green800 => m_ColorSets[9][8];

		public static Color green900 => m_ColorSets[9][9];

		public static Color greenA100 => m_ColorSets[9][10];

		public static Color greenA200 => m_ColorSets[9][11];

		public static Color greenA400 => m_ColorSets[9][12];

		public static Color greenA700 => m_ColorSets[9][13];

		public static Color[] lightGreenSet => m_ColorSets[10];

		public static Color lightGreen50 => m_ColorSets[10][0];

		public static Color lightGreen100 => m_ColorSets[10][1];

		public static Color lightGreen200 => m_ColorSets[10][2];

		public static Color lightGreen300 => m_ColorSets[10][3];

		public static Color lightGreen400 => m_ColorSets[10][4];

		public static Color lightGreen500 => m_ColorSets[10][5];

		public static Color lightGreen600 => m_ColorSets[10][6];

		public static Color lightGreen700 => m_ColorSets[10][7];

		public static Color lightGreen800 => m_ColorSets[10][8];

		public static Color lightGreen900 => m_ColorSets[10][9];

		public static Color lightGreenA100 => m_ColorSets[10][10];

		public static Color lightGreenA200 => m_ColorSets[10][11];

		public static Color lightGreenA400 => m_ColorSets[10][12];

		public static Color lightGreenA700 => m_ColorSets[10][13];

		public static Color[] limeSet => m_ColorSets[11];

		public static Color lime50 => m_ColorSets[11][0];

		public static Color lime100 => m_ColorSets[11][1];

		public static Color lime200 => m_ColorSets[11][2];

		public static Color lime300 => m_ColorSets[11][3];

		public static Color lime400 => m_ColorSets[11][4];

		public static Color lime500 => m_ColorSets[11][5];

		public static Color lime600 => m_ColorSets[11][6];

		public static Color lime700 => m_ColorSets[11][7];

		public static Color lime800 => m_ColorSets[11][8];

		public static Color lime900 => m_ColorSets[11][9];

		public static Color limeA100 => m_ColorSets[11][10];

		public static Color limeA200 => m_ColorSets[11][11];

		public static Color limeA400 => m_ColorSets[11][12];

		public static Color limeA700 => m_ColorSets[11][13];

		public static Color[] yellowSet => m_ColorSets[12];

		public static Color yellow50 => m_ColorSets[12][0];

		public static Color yellow100 => m_ColorSets[12][1];

		public static Color yellow200 => m_ColorSets[12][2];

		public static Color yellow300 => m_ColorSets[12][3];

		public static Color yellow400 => m_ColorSets[12][4];

		public static Color yellow500 => m_ColorSets[12][5];

		public static Color yellow600 => m_ColorSets[12][6];

		public static Color yellow700 => m_ColorSets[12][7];

		public static Color yellow800 => m_ColorSets[12][8];

		public static Color yellow900 => m_ColorSets[12][9];

		public static Color yellowA100 => m_ColorSets[12][10];

		public static Color yellowA200 => m_ColorSets[12][11];

		public static Color yellowA400 => m_ColorSets[12][12];

		public static Color yellowA700 => m_ColorSets[12][13];

		public static Color[] amberSet => m_ColorSets[13];

		public static Color amber50 => m_ColorSets[13][0];

		public static Color amber100 => m_ColorSets[13][1];

		public static Color amber200 => m_ColorSets[13][2];

		public static Color amber300 => m_ColorSets[13][3];

		public static Color amber400 => m_ColorSets[13][4];

		public static Color amber500 => m_ColorSets[13][5];

		public static Color amber600 => m_ColorSets[13][6];

		public static Color amber700 => m_ColorSets[13][7];

		public static Color amber800 => m_ColorSets[13][8];

		public static Color amber900 => m_ColorSets[13][9];

		public static Color amberA100 => m_ColorSets[13][10];

		public static Color amberA200 => m_ColorSets[13][11];

		public static Color amberA400 => m_ColorSets[13][12];

		public static Color amberA700 => m_ColorSets[13][13];

		public static Color[] orangeSet => m_ColorSets[14];

		public static Color orange50 => m_ColorSets[14][0];

		public static Color orange100 => m_ColorSets[14][1];

		public static Color orange200 => m_ColorSets[14][2];

		public static Color orange300 => m_ColorSets[14][3];

		public static Color orange400 => m_ColorSets[14][4];

		public static Color orange500 => m_ColorSets[14][5];

		public static Color orange600 => m_ColorSets[14][6];

		public static Color orange700 => m_ColorSets[14][7];

		public static Color orange800 => m_ColorSets[14][8];

		public static Color orange900 => m_ColorSets[14][9];

		public static Color orangeA100 => m_ColorSets[14][10];

		public static Color orangeA200 => m_ColorSets[14][11];

		public static Color orangeA400 => m_ColorSets[14][12];

		public static Color orangeA700 => m_ColorSets[14][13];

		public static Color[] deepOrangeSet => m_ColorSets[15];

		public static Color deepOrange50 => m_ColorSets[15][0];

		public static Color deepOrange100 => m_ColorSets[15][1];

		public static Color deepOrange200 => m_ColorSets[15][2];

		public static Color deepOrange300 => m_ColorSets[15][3];

		public static Color deepOrange400 => m_ColorSets[15][4];

		public static Color deepOrange500 => m_ColorSets[15][5];

		public static Color deepOrange600 => m_ColorSets[15][6];

		public static Color deepOrange700 => m_ColorSets[15][7];

		public static Color deepOrange800 => m_ColorSets[15][8];

		public static Color deepOrange900 => m_ColorSets[15][9];

		public static Color deepOrangeA100 => m_ColorSets[15][10];

		public static Color deepOrangeA200 => m_ColorSets[15][11];

		public static Color deepOrangeA400 => m_ColorSets[15][12];

		public static Color deepOrangeA700 => m_ColorSets[15][13];

		public static Color[] brownSet => m_ColorSets[16];

		public static Color brown50 => m_ColorSets[16][0];

		public static Color brown100 => m_ColorSets[16][1];

		public static Color brown200 => m_ColorSets[16][2];

		public static Color brown300 => m_ColorSets[16][3];

		public static Color brown400 => m_ColorSets[16][4];

		public static Color brown500 => m_ColorSets[16][5];

		public static Color brown600 => m_ColorSets[16][6];

		public static Color brown700 => m_ColorSets[16][7];

		public static Color brown800 => m_ColorSets[16][8];

		public static Color brown900 => m_ColorSets[16][9];

		public static Color[] blueGreySet => m_ColorSets[17];

		public static Color blueGrey50 => m_ColorSets[17][0];

		public static Color blueGrey100 => m_ColorSets[17][1];

		public static Color blueGrey200 => m_ColorSets[17][2];

		public static Color blueGrey300 => m_ColorSets[17][3];

		public static Color blueGrey400 => m_ColorSets[17][4];

		public static Color blueGrey500 => m_ColorSets[17][5];

		public static Color blueGrey600 => m_ColorSets[17][6];

		public static Color blueGrey700 => m_ColorSets[17][7];

		public static Color blueGrey800 => m_ColorSets[17][8];

		public static Color blueGrey900 => m_ColorSets[17][9];

		public static Color[] greySet => m_ColorSets[18];

		public static Color grey50 => m_ColorSets[18][0];

		public static Color grey100 => m_ColorSets[18][1];

		public static Color grey200 => m_ColorSets[18][2];

		public static Color grey300 => m_ColorSets[18][3];

		public static Color grey400 => m_ColorSets[18][4];

		public static Color grey500 => m_ColorSets[18][5];

		public static Color grey600 => m_ColorSets[18][6];

		public static Color grey700 => m_ColorSets[18][7];

		public static Color grey800 => m_ColorSets[18][8];

		public static Color grey900 => m_ColorSets[18][9];

		public static Color textDark => new Color(0f, 0f, 0f, 0.87f);

		public static Color textLight => new Color(1f, 1f, 1f, 1f);

		public static Color textSecondaryDark => new Color(0f, 0f, 0f, 0.54f);

		public static Color textSecondaryLight => new Color(1f, 1f, 1f, 0.7f);

		public static Color textHintDark => new Color(0f, 0f, 0f, 0.26f);

		public static Color textHintLight => new Color(1f, 1f, 1f, 0.3f);

		public static Color iconDark => new Color(0f, 0f, 0f, 0.54f);

		public static Color iconLight => new Color(1f, 1f, 1f, 1f);

		public static Color disabledDark => new Color(0f, 0f, 0f, 0.26f);

		public static Color disabledLight => new Color(1f, 1f, 1f, 0.3f);

		public static Color dividerDark => new Color(0f, 0f, 0f, 0.12f);

		public static Color dividerLight => new Color(1f, 1f, 1f, 0.12f);

		public static string ColorToHex(Color32 color)
		{
			return color.r.ToString("X2") + color.g.ToString("X2") + color.b.ToString("X2");
		}

		public static Color HexToColor(string hex, float alpha = 1f)
		{
			byte r = byte.Parse(hex.Substring(0, 2), NumberStyles.HexNumber);
			byte g = byte.Parse(hex.Substring(2, 2), NumberStyles.HexNumber);
			byte b = byte.Parse(hex.Substring(4, 2), NumberStyles.HexNumber);
			return new Color32(r, g, b, (byte)Mathf.RoundToInt(alpha * 255f));
		}

		public static Color HighlightColor(Color baseColor, Color baseHighlightColor, float blendAmount = 0.2f)
		{
			if (baseColor.a == 0f)
			{
				baseHighlightColor.a = blendAmount;
			}
			else
			{
				baseHighlightColor.r = Tween.Linear(baseColor.r, baseHighlightColor.r, blendAmount, 1f);
				baseHighlightColor.g = Tween.Linear(baseColor.g, baseHighlightColor.g, blendAmount, 1f);
				baseHighlightColor.b = Tween.Linear(baseColor.b, baseHighlightColor.b, blendAmount, 1f);
				baseHighlightColor.a = Tween.Linear(baseColor.a, baseHighlightColor.a, blendAmount, 1f);
			}
			return baseHighlightColor;
		}

		public static bool LightOrDarkElements(Color baseColor)
		{
			if (baseColor.a < 0.5f)
			{
				return true;
			}
			return (baseColor.r + baseColor.b + baseColor.g) / 3f < 0.5f;
		}

		public static float ColorDistance(Color color1, Color color2)
		{
			float num = (color1.r + color2.r) / 2f;
			int num2 = (int)(color1.r * 256f - color2.r * 256f);
			int num3 = (int)(color1.g * 256f - color2.g * 256f);
			int num4 = (int)(color1.b * 256f - color2.b * 256f);
			float num5 = 2f + num / 256f;
			float num6 = 4f;
			float num7 = 2f + (255f - num) / 256f;
			return Mathf.Sqrt(num5 * (float)num2 * (float)num2 + num6 * (float)num3 * (float)num3 + num7 * (float)num4 * (float)num4);
		}

		public static Color ClosestMaterialColor(Color color)
		{
			if (color == Color.blue)
			{
				return indigoA700;
			}
			float num = float.MaxValue;
			Color result = default(Color);
			if (HSBColor.FromColor(color).s < 0.0207468f)
			{
				for (int i = 0; i < greySet.Length; i++)
				{
					float num2 = ColorDistance(color, greySet[i]);
					if (num2 < num)
					{
						num = num2;
						result = greySet[i];
					}
				}
				return result;
			}
			for (int j = 0; j < m_ColorSets.Length; j++)
			{
				for (int k = 0; k < m_ColorSets[j].Length - 1; k++)
				{
					float num3 = ColorDistance(color, m_ColorSets[j][k]);
					if (num3 < num)
					{
						num = num3;
						result = m_ColorSets[j][k];
					}
				}
			}
			return result;
		}

		public static Color[] ClosestMaterialColorSet(Color color)
		{
			float num = float.MaxValue;
			Color[] result = null;
			if (HSBColor.FromColor(color).s < 0.0207468f)
			{
				return greySet;
			}
			for (int i = 0; i < m_ColorSets.Length; i++)
			{
				for (int j = 0; j < m_ColorSets[i].Length - 1; j++)
				{
					float num2 = ColorDistance(color, m_ColorSets[i][j]);
					if (num2 < num)
					{
						num = num2;
						result = m_ColorSets[i];
					}
				}
			}
			return result;
		}

		public static Color OffsetShade(Color color, int shadeOffset, Color[] colorSet = null)
		{
			color = ClosestMaterialColor(color);
			if (colorSet == null)
			{
				colorSet = ClosestMaterialColorSet(color);
			}
			int num = -1;
			for (int i = 0; i < colorSet.Length; i++)
			{
				if (color.Approximately(colorSet[i]))
				{
					num = i;
					break;
				}
			}
			num = Mathf.Clamp(num - shadeOffset, 0, colorSet.Length - 1);
			return colorSet[num];
		}

		public static Color Random500(bool includeGrey = false)
		{
			return m_ColorSets[UnityEngine.Random.Range(0, (!includeGrey) ? (m_ColorSets.Length - 1) : m_ColorSets.Length)][5];
		}
	}
}
